<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib uri="/struts-tags" prefix="s"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
	<div id="rightContent">
		<s:form action="getInvoice">
			<s:textfield name="vehicleNo" label="Service Number" />
			<s:submit />
		</s:form>
	</div>

	<div id="leftContent">
		<s:if test="listOfItems.size()>0">
			<table id="main-design">
				<tr class="even">
					<th>Item Id</th>
					<th>Name</th>
					<th>Unit prize</th>
					<th>quantity</th>
				</tr>
				<s:iterator value="listOfItems" status="userStatus">
					<tr
						class="<s:if test="#userStatus.odd == true ">odd</s:if><s:else>even</s:else>">
						<td><s:property value="item_id" /></td>
						<td><s:property value="name" /></td>
						<td><s:property value="unit_price_sel" /></td>
						<td><s:property value="quantity" /></td>
					</tr>
				</s:iterator>
			</table>
			Total=
			<s:property value="total" />
		</s:if>
		<s:else>
			No item found for the service
		</s:else>	
	</div>
</body>
</html>